package moviePack;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;


public class MovieOutput implements PropertyChangeListener{
	public void print(Movie[] movies){
		for(int i=0;i<movies.length;i++){
			System.out.println(movies[i].getTitle()+" - "+movies[i].getDirector());
		}
	}

	@Override
	public void propertyChange(PropertyChangeEvent arg0) {
		this.print((Movie[])arg0.getNewValue());
	}
	
}
